import { Prisma } from "@prisma/generated-client";

export async function create(
  model: Prisma.TransactionClient["user"],
  data: Prisma.UserCreateInput
): Promise<Awaited<ReturnType<Prisma.TransactionClient["user"]["create"]>>>;
export async function create(
  model: Prisma.TransactionClient["role"],
  data: Prisma.RoleCreateInput
): Promise<Awaited<ReturnType<Prisma.TransactionClient["role"]["create"]>>>;
export async function create(model: any, data: any): Promise<any> {
  return model.create({ data });
}
